]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
loginDialog: hide session list until username is entered
authorRay Strode <rstrode@redhat.com>
Wed, 31 Oct 2012 18:32:33 +0000 (14:32 -0400)
committerRay Strode <rstrode@redhat.com>
Tue, 6 Nov 2012 20:02:36 +0000 (15:02 -0500)
Right now when a user clicks "Not Listed?" they end up
seeing a session list that gets reset after they enter their
username.

This commit hides the session list until the username has
been entered.

https://bugzilla.gnome.org/show_bug.cgi?id=660660

js/gdm/loginDialog.js

index 7c7906675ae3fac7365c0af300baf49b52312c59..a07a2b367c64e76a09afed8b72ceb5f26ae05623 100644 (file)
@@ -687,6 +687,7 @@ const LoginDialog = new Lang.Class({
         this._userVerifier.connect('reset', Lang.bind(this, this._onReset));
         this._userVerifier.connect('show-login-hint', Lang.bind(this, this._showLoginHint));
         this._userVerifier.connect('hide-login-hint', Lang.bind(this, this._hideLoginHint));
+        this._verifyingUser = false;
 
         this._settings = new Gio.Settings({ schema: GdmUtil.LOGIN_SCREEN_SCHEMA });
 
@@ -830,6 +831,7 @@ const LoginDialog = new Lang.Class({
                      }];
 
         this._user = null;
+        this._verifyingUser = false;
 
         let batch = new Batch.ConsecutiveBatch(this, tasks);
         batch.run();
@@ -887,6 +889,9 @@ const LoginDialog = new Lang.Class({
                          if (this._user && this._user.is_logged_in())
                              return null;
 
+                         if (!this._verifyingUser)
+                             return null;
+
                          return GdmUtil.fadeInActor(this._sessionList.actor);
                      },
 
@@ -1174,6 +1179,7 @@ const LoginDialog = new Lang.Class({
         let hold = new Batch.Hold();
 
         this._userVerifier.begin(userName, hold);
+        this._verifyingUser = true;
         return hold;
     },